<?php


namespace app\mod;


use core\event\EventGroupMessage;
use core\Mod;

class SendLikeMod extends Mod {

    public function eventGroupMessage(EventGroupMessage $event) {
        if ($event->getMessage()->string() === '我要点赞') {
            $event->getSender()->sendLike(1);
            $event->getGroup()->sendMessage("点好了！", at($event->getSender()->id));
        }
    }

}
